﻿
namespace WU.LoadTester.Lib.Service.Bindings
{
    public class BindingConstants
    {
        public static readonly string BindingComments = "<!-- A basic binding as been generated from the type you selected." + System.Environment.NewLine + " Please modify or add binding settings you wish to apply, save and close this window." + System.Environment.NewLine + "The endpoint will be loaded with your settings afterwards." + System.Environment.NewLine + "Warning: Do not add any other binding in this configuration file. -->" + System.Environment.NewLine;
        public static readonly string BindingConfigurationHeader = "<?xml version=\"1.0\" encoding=\"utf-8\" ?>" + System.Environment.NewLine + "<configuration>" + System.Environment.NewLine + "<system.serviceModel>" + System.Environment.NewLine + "<bindings>" + System.Environment.NewLine;
        public static readonly string BindingConfigurationFooter = "</bindings>" + System.Environment.NewLine + "</system.serviceModel>" + System.Environment.NewLine + "</configuration>" + System.Environment.NewLine;
        public static readonly string WsHttBindingConfiguration = "<wsHttpBinding>" + System.Environment.NewLine + "<binding name=\"Binding1\">" + System.Environment.NewLine + "</binding></wsHttpBinding>" + System.Environment.NewLine;
        public static readonly string BasicHttpBindingConfiguration = "<basicHttpBinding>" + System.Environment.NewLine + "<binding name=\"Binding1\" hostNameComparisonMode=\"StrongWildcard\" receiveTimeout=\"00:10:00\" sendTimeout=\"00:10:00\" openTimeout=\"00:10:00\" closeTimeout=\"00:10:00\">" + System.Environment.NewLine + "<security mode=\"None\" />" + System.Environment.NewLine + "</binding>" + System.Environment.NewLine + "</basicHttpBinding>" + System.Environment.NewLine;
        public static readonly string NetTCPBindingConfiguration = "<netTcpBinding>" + System.Environment.NewLine + "<binding name=\"Binding1\" closeTimeout=\"00:01:00\" openTimeout=\"00:01:00\" receiveTimeout=\"00:10:00\" sendTimeout=\"00:01:00\"/>" + System.Environment.NewLine + "<security mode=\"Transport\">" + System.Environment.NewLine + "<transport clientCredentialType=\"Windows\" protectionLevel=\"EncryptAndSign\" />" + System.Environment.NewLine + "</security>" + System.Environment.NewLine + "</binding>" + System.Environment.NewLine + "</netTcpBinding>" + System.Environment.NewLine;
        public static readonly string CustomASMXBindingConfiguration = "<customBinding>" + System.Environment.NewLine + "<binding name=\"Binding1\">" + System.Environment.NewLine + "<textMessageEncoding maxReadPoolSize=\"64\" maxWritePoolSize=\"16\" messageVersion=\"Soap12\" writeEncoding=\"utf-8\" />" + System.Environment.NewLine + "<httpTransport manualAddressing=\"false\" allowCookies=\"false\" authenticationScheme=\"Anonymous\" bypassProxyOnLocal=\"false\" hostNameComparisonMode=\"StrongWildcard\" proxyAuthenticationScheme=\"Anonymous\" transferMode=\"Buffered\" unsafeConnectionNtlmAuthentication=\"false\" useDefaultWebProxy=\"true\" /> " + System.Environment.NewLine + "</binding>" + System.Environment.NewLine + "</customBinding>";
    }
}
